﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mall.Core
{
    public class BaseResult
    {
        public string Code { get; set; }
        public string Msg { get; set; }

    }

    /// <summary>
    /// 对文件上传响应模型
    /// </summary>
    public class UploadFileRequest
    {
        /// <summary>
        /// 文件名称
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 文件路径
        /// </summary>
        public string FilePath { get; set; }
    }
    public class MultiUploadFileResult : BaseResult
    {
        public List<UploadFileRequest> Paths { get; set; }
    }

    public class UploadFileResult : BaseResult
    {
        public string Path { get; set; }
    }

    public class LoginResult : BaseResult
    {
        public string Url { get; set; }
    }

    public class LayuiResult<T> : BaseResult
    {
        //000成功
        public int Count { get; set; }
        public IEnumerable<T> Data { get; set; }
    }
}
